ifeq ($(DAVINCI_HIAI_DKMS), y)
LOCAL_PATH := $(HIAI_DKMS_DIR)/dvpp_cmdlist
include $(LOCAL_PATH)/vdrv/Makefile_dkms
else
LOCAL_PATH := $(TOP_DIR)/ace/dvpp/dvpp/dvpp_cmdlist

obj-m   += vdrv_dvpp_cmdlist.o

vdrv_dvpp_cmdlist-objs := dvpp_vdrv_init.o dvpp_trs_ops.o
vdrv_dvpp_cmdlist-objs += vdvpp_sqe_para_check.o
vdrv_dvpp_cmdlist-objs += vdvpp_share_mem_ctrl.o
vdrv_dvpp_cmdlist-objs += vdvpp_svm_mem_ctrl.o
vdrv_dvpp_cmdlist-objs += vdvpp_vcm_agent.o
vdrv_dvpp_cmdlist-objs += vdvpp_cmdlist_ioctl.o

EXTRA_CFLAGS += -I$(LOCAL_PATH)/main/host \
                -I$(LOCAL_PATH)/main/host/mem_ctrl \
                -I$(LOCAL_PATH)/main/comm \
                -I$(LOCAL_PATH)/base \
                -I$(LOCAL_PATH)/cmdlist \
                -I$(LOCAL_PATH)/proc \
                -I$(LOCAL_PATH)/context \
                -I$(LOCAL_PATH)/vdrv \
                -I$(LOCAL_PATH)/decoder \
                -I$(LOCAL_PATH)/vmng \
                -I$(LOCAL_PATH)/fops

EXTRA_CFLAGS += -I$(TOP_DIR)/inc/driver
EXTRA_CFLAGS += -I$(TOP_DIR)/drivers/ai_sdk/arc/linux/kernel_space_open/inc
EXTRA_CFLAGS += -I$(TOP_DIR)/drivers/ai_sdk/arc/linux/kernel_space/src/svmdrv/common
EXTRA_CFLAGS += -I$(TOP_DIR)/drivers/ai_sdk/arc/linux/kernel_space/inc
EXTRA_CFLAGS += -I$(TOP_DIR)/drivers/ts_agent/inc
EXTRA_CFLAGS += -I$(TOP_DIR)/abl/libc_sec/include
endif
